SRC_CHARS =  'áčďéěíňóřšťúůýžÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ'
DEST_CHARS = 'acdeeinorstuuyzACDEEINORSTUUYZ'

charMap = { }
for i, c in enumerate(SRC_CHARS):
    charMap[c] = DEST_CHARS[i]

print(charMap)

def processFile(fileName):
    global charMap
    f = open(fileName, 'rb')
    text = f.read().decode('utf-8')
    for key, value in charMap.items():
        print(key, value)
        text = text.replace(key, value)
    f.close()
    return text


fileName = 'cs.po'
text = processFile(fileName)
f = open(fileName, 'w')
f.write(text)
f.close()


